{% extends "base.html" %}

{% block content %}

<h1>My Profile</h1>

{% if all_sessions %}
<ul>
    {% for session in all_sessions %}
    {% if session.creator.username == user.username %}
    <li><a href="/session/{{ session.id }}/">My Plans</a>
    {% else %}
    <li><a href="/session/{{ session.id }}/">{{ session.title }} by {{ session.creator.user.username }}</a>
    {% endif %}
    {% endfor %}
</ul>
{% else %}
<b>You don't have any plans yet</b>
{% endif %}
{% endblock %}
